package com.dwd.pet.pojo;

import com.dwd.basic.pojo.BaseBean;
import com.dwd.org.pojo.Shop;
import com.dwd.user.pojo.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: TODO
 * @Author 汶狄
 * @Date 2021/1/24 9:57
 * @Version 1.0
 */
@Data
public class Pet extends BaseBean {
    private String name;
    private String resources;
    private BigDecimal saleprice;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date offsaletime = new Date();
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date onsaletime;
    private Integer state=0;
    private BigDecimal costprice;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createtime = new Date();
    private Long type_id;
    private PetType type;
    private Long shop_id;
    private Shop shop;
    private Long user_id;
    private User user;
    /**
     * 寻主信息id
     */
    private Long adopt_id;
    private PetDetail detail;
    private Integer sourceType;
    /**
     * 支付方式  用dto接收
     */
    private Integer paytype;

}
